<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>插入图片</title>
<style type="text/css">
<!--
*{padding: 0px; margin: 0px;}
html, body {font-size: 12px; text-align: left; line-height: 18px; padding: 0px; margin:0px; background: #edeae7; overflow: hidden;}
ol,ul,li{list-style:none; margin: 0px; padding: 0px; }
h1,h2,h3,h4,h5,font{ font-size: 12px;}

a:link    {font-size: 12px; color: #000000; text-decoration: none; border:none;}
a:visited {font-size: 12px; color: #000000; text-decoration: none; border:none;}
a:hover   {font-size: 12px; color: #ec7e2d; text-decoration: underline; border:none;}
a:active  {font-size: 12px; color: #000000; text-decoration: none; border:none;}

a img{ border: none;}
.mclear{clear: both; visibility: hidden; font-size: 0px; line-height: 0px; padding: 0px; margin: 0px;}

#Panel{text-align: left; padding-left: 15px; padding-top: 18px;}
	#Panel li{ padding-top: 7px;}
	#Panel select{ font-size: 12px;}
	#Panel .inputs{ font-size: 12px;}
	#Panel .xBtn{ border: 1px solid #333;}
-->
</style>
<script type="text/javascript" src="dialog.js"></script>
<script type="text/javascript">
var sAction = URLParams["action"];

function SubThis(){
	if(typeof(oCtrlWin)!="undefined"){
		if(($("d_url").value=="http://") || ($("d_url").value==null)){
			BaseAlert($("d_url"),"输入的图片地址无效！");
			return;
		}
		var oRange = oMyEditor.seleRestore();
		imgHTML="<img src=\""+$("d_url").value+"\" />";
		try{
			if(isIE){	
				oRange.pasteHTML(imgHTML);
			}else{
				try{
					oCtrlWin.document.execCommand("insertHTML",false,imgHTML);
				}catch(e){
					var oFragment = oRange.createContextualFragment(imgHTML) ;
					var oLastNode = oFragment.lastChild;
					oRange.deleteContents();
					oRange.insertNode(oFragment);
				}
			}
		}catch(e){
		
		}
	}
	xClose();
}
</script>
</head>
<body>
<div id="Panel">
    <ul>
        <li>
			网络图片:
			<input class="inputs" name="d_url" type="text" id="d_url" value="http://" size="25" maxlength="200" />
		</li>
		<li></li>
        <li>
            <input class="xBtn" type="button" name="SubBtn" id="SubBtn" onclick="SubThis();" value="确定" />
            <input class="xBtn" type="button" name="NoBtn" id="NoBtn" onclick="xClose();" value="取消" />
      	</li>
    </ul>
</div>
</body>
</html>
